package com.example.userservice.service.impl;


import com.example.userservice.model.User;
import com.example.userservice.model.UserExample;
import com.example.userservice.model.UserMapper;
import com.example.userservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public String getUser() {
        return "user-service:张三";
    }

    @Override
    public List<User> getAllUser() {
        return userMapper.selectByExample(new UserExample());
    }
}
